package com.guoyan.blockchain.component.model;

import com.alibaba.fastjson.JSONObject;

/**
 * @author yeym
 */
public interface Model {
    /**
     * 验证数据
     *
     * @return 验证结果
     */
    Boolean verify();

    /**
     * 生成model
     *
     * @param jsonObject json
     * @return model
     */
    Model fromJson(JSONObject jsonObject);
}
